( function(){
   window.fetchComputedStyle = function( element, property ){
	   if( window.getComputedStyle ){
		   var computedStyles = window.getComputedStyle( element );
		   if( computedStyles ){
			   var attr = property.replace( /-[A-Z]/g,"-$" ).toLowerCase();
			   return computedStyles.getPropertyValue( attr );
		   }
	   }
	   else if( element.currentStyle ){ //ie8 and before
		   var attr = property.replace( /-[a-z]/ig,function( all, letter ){
			   return letter.toUpperCase();
		   });
		   return element.currentStyle( attr );
	   }
   }
})();
